home *** CD-ROM | disk | FTP | other *** search
/ Language/OS - Multiplatform Resource Library / LANGUAGE OS.iso / cpp_libs / awe2-0_1.lha / awe2-0.1 / Src / RCS / BoundedFifo.h,v < prev    next >
Text File  |  1989-02-23  |  2KB  |  101 lines

  1. head     3.2;
  2. branch   ;
  3. access   ;
  4. symbols  ;
  5. locks    grunwald:3.2; strict;
  6. comment  @ * @;
  7.  
  8.  
  9. 3.2
  10. date     89.02.20.15.32.28;  author grunwald;  state Exp;
  11. branches ;
  12. next     3.1;
  13.  
  14. 3.1
  15. date     88.12.20.13.49.35;  author grunwald;  state Exp;
  16. branches ;
  17. next     1.2;
  18.  
  19. 1.2
  20. date     88.10.30.13.05.34;  author grunwald;  state Exp;
  21. branches ;
  22. next     1.1;
  23.  
  24. 1.1
  25. date     88.09.18.16.42.03;  author grunwald;  state Exp;
  26. branches ;
  27. next     ;
  28.  
  29.  
  30. desc
  31. @@
  32.  
  33.  
  34. 3.2
  35. log
  36. @Start using Gnu library heaps for schedulers
  37. @
  38. text
  39. @// This may look like C code, but it is really -*- C++ -*-
  40. // 
  41. // Copyright (C) 1988 University of Illinois, Urbana, Illinois
  42. //
  43. // written by Dirk Grunwald (grunwald@@cs.uiuc.edu)
  44. //
  45. #ifndef BOUNDEDFIFOH
  46. #define BOUNDEDFIFOH
  47.  
  48. #include "LowerBoundedFifo.h"
  49.  
  50. //
  51. // A BoundedFifo is a LowerBoundedFifo that also has an upper bound.
  52. // The members are implemented over the LowerBoundedFifo members to
  53. // reduce the number of calls.
  54. //
  55. class BoundedFifo : public LowerBoundedFifo {
  56.  
  57. protected:
  58.     int pMaxLength;
  59.     Semaphore upperBoundLock;
  60.  
  61. public:
  62.  
  63.     BoundedFifo(int xmaxLength = 1, int defaultLength = 0);
  64.  
  65.     virtual void add(AwesimeFifoItem *t);
  66.     virtual bool remove(AwesimeFifoItem *item);
  67.     virtual bool removeIfFound(AwesimeFifoItem *item);
  68.  
  69.     virtual bool doDelete(AwesimeFifoIndex& index);
  70.  
  71.     virtual unsigned size();
  72. };
  73.              
  74. #endif BOUNDEDFIFOH
  75. @
  76.  
  77.  
  78. 3.1
  79. log
  80. @Steay version
  81. @
  82. text
  83. @@
  84.  
  85.  
  86. 1.2
  87. log
  88. @*** empty log message ***
  89. @
  90. text
  91. @@
  92.  
  93.  
  94. 1.1
  95. log
  96. @Initial revision
  97. @
  98. text
  99. @d1 6
  100. @
  101.